#ifndef FROMCHKNET_H
#define FROMCHKNET_H

#include <QWidget>
#include <jcode.h>
#include <QHostInfo>
#include <QNetworkReply>



QT_BEGIN_NAMESPACE
namespace Ui { class fromchknet; }
QT_END_NAMESPACE

class fromchknet : public QWidget
{
    Q_OBJECT

public:
    fromchknet(QWidget *parent = nullptr);
    ~fromchknet();
    QString protocolName(QAbstractSocket::NetworkLayerProtocol protocol);
private slots:
    static QString ReplaceIimg(QString str);
    void Start(); //初始化
    void setNetworkGIF(const QString &GifUrl);
    void setLED(QLabel* label, int color, int size);
    void ScriptStart(); //执行脚本
    void AutoKeep(); //自动重复
    void DJS(); //倒计时
    void RefPIcture();
    void on_cmdScanIP_clicked();
    void on_cmdScriptStart_clicked();
    void on_cmdCMD_clicked();
    void on_cmdUrl_clicked();
    void on_cmdSet_SaveScript_clicked();
    void on_cmdScriptInsLine_clicked();
    void on_cmdScriptDelLine_clicked();
    void on_cmdScripCopy_clicked();
    void on_cmdScripPrint_clicked();
    void on_cmdClearTree_clicked();




    void on_cmbKeep_currentIndexChanged(int index);

    void on_cmdScripShow_clicked();


private:
    Ui::fromchknet *ui;
    QTimer *m_timer;
    QTimer *djs;
    long js;
};
#endif // FROMCHKNET_H
